#include"util.h"
int deltai[4] = {-1, 1, 0, 0};
int deltaj[4] = {0, 0, -1, 1};
int multideltai[8] = {-1,-1,-1, 0,0,1,1,1};
int multideltaj[8] = {-1,0, 1, -1,1,-1,0,1 };
int first[40] = {3*13+3, 9*13+3, 3*13+9, 9*13 + 9,2*13+2,10*13+2,2*13+10,10*13+10, 1, 1*13+1, 1*13, 2*13+1 ,3*13+1, 3*13, 11*13,11*13+1, 11*13+2, 11*13+3, 12*13+1, 12*13+3, 9*13+11, 10*13+11, 11*13+11,12*13+11, 11*13+12, 9*13+12, 1*13, 1*13+9,1*13+10,1*13+11,1*13+12, 9,11};
int default_move_count = 0;
int board_size = 13;
int time_limit = 4;
float komi = 6.5;
PatternMatcher book;
bool usebook = false;
int patternlimit = 0.05;
bool playpass = true;
bool debugMsg = false;
int
pass_move(int i, int j)
{
  return i == -1 && j == -1;
}

int  
on_board(int i, int j)
{
  return i >= 0 && i < board_size && j >= 0 && j < board_size;
}


